import { translate } from '@/utils/i18n'
export const weekList = [
  { value: '1', label: translate('z1') },
  { value: '2', label: translate('z2') },
  { value: '3', label: translate('z3') },
  { value: '4', label: translate('z4') },
  { value: '5', label: translate('z5') },
  { value: '6', label: translate('z6') },
  { value: '7', label: translate('z7') },
  { value: '8', label: translate('z8') }
]
export const limitNum = [
  { label: translate('everyday'), value: '0' },
  { label: translate('everyweek'), value: '1' },
  { label: translate('everymonth'), value: '2' },
  { label: translate('allActivity'), value: '3' }
]

export const rules = {
  couponsName: [
    { required: true, message: translate('disCouponNamePlace'), trigger: 'blur' }
  ],
  // miniNum: [
  //   { type: 'number', required: true, message: '请输入优惠券规则', trigger: 'blur' }
  // ],
  couponsType: [
    { required: true, message: translate('couponTypePlace'), trigger: 'change' }
  ],
  validityType: [
    { required: true, message: translate('changeIndateTypePlace'), trigger: 'change' }
  ],
  // discountNum: [
  //   { type: 'number', required: true, message: translate('qsr'), trigger: 'blur' }
  // ],
  validityTime: [
    { required: true, message: translate('changeIndatePlace'), trigger: 'change' }
  ],
  validityDays: [
    { required: true, message: translate('inputDatePlace'), trigger: 'blur' }
  ],
  circulation: [
    { required: true, message: translate('fxslPlace'), trigger: 'blur' }
  ],
  couponsChannel: [
    { required: true, message: translate('giveChannelPlace'), trigger: 'change' }
  ],
  // receiveStartTime: [
  //   { required: true,message: translate('limitStartTime'), trigger: 'change' }
  // ],
  timeLimit: [
    { type: 'array', required: true, message: translate('limitStartTime'), trigger: 'change' }
  ],
  receiveEndTime: [
    { required: true, message: translate('limitEndTime'), trigger: 'change' }
  ]
}
